<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [
            {
                id:1,
                title:'今天天气不错，挺风和日丽的',
                isDone:true
            },
            {
                id:2,
                title:'学习json',
                isDone:false
            }
        ];
        var arrStr = JSON.stringify(arr);// 可以将元素是对象的数组，转化为JSON格式的字符串
        console.log('arrStr: ', arrStr,typeof arrStr);// json格式的数组 - 字符串

        var newArr = JSON.parse(arrStr);
        console.log(newArr , newArr instanceof Array, Array.isArray(newArr));

        console.log(newArr[0].title);//可以还原成数组和对象
    </script>
</body>
</html>